using TableTools.Handlers;
using TableTools.Models;

namespace TableTools.Services;

public class PdfToTableService : ITableService
{
    private readonly PdfTableHandler handler;

    public PdfToTableService(PdfTableHandler handler)
    {
        this.handler = handler;
    }

    public async Task<TableResult> ToTableAsync(string path)
    {
        return handler.ToTable(path);
    }
}